Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 990cfb024a1cfaf671f3b49adca808c2732c1647


Parents : bd53bef
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-12-20T12:53:50+01:00

Change RNode bluetooth usage at runtime

Changes

1 files changed, 7 insertions(+), 0 deletions(-)


Diff

diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index 48dd9d14..fe095b68 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -1259,6 +1259,13 @@ class SidebandCore():
while True:
time.sleep(SidebandCore.SERVICE_JOB_INTERVAL)
now = time.time()
+
+ if hasattr(self, "interface_rnode") and self.interface_rnode != None:
+ if self.config["hw_rnode_bluetooth"]:
+ self.interface_rnode.allow_bluetooth = True
+ else:
+ self.interface_rnode.allow_bluetooth = False
+
if self.getstate("wants.announce"):
self.lxmf_announce()


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────